import './sass/list.scss'
// import './js/mock'
import axios from 'axios'
axios.get('/move').then(res => {
    render(res.data);
    console.log(res.data)
})
function render(arr) {
    const movie = document.querySelector('.movie')
    movie.innerHTML = arr.map((v) => {
        return `
        <img src="${v.img}" alt="">
        <h2>${v.text}</h2>
        <h2>${v.title}</h>
        `
    }).join("");
}